<template>
  <div class="input">
    <input
      type="text"
      @keyup.enter="TodosStore.addTodo"
      placeholder="你接下来要做什么?"
    />
  </div>
</template>

<script setup>
import useTodosStore from "../Store/modules/Todos";
const TodosStore = useTodosStore();
</script>

<style lang="scss" scoped>
.input input {
  width: 100%;
  height: 40px;
  border: 1px solid #999;
  outline: none;
}
</style>